local hx__choujue = fk.CreateSkill {
  name = "hx__choujue",
  tags = { Skill.Compulsory },
}

hx__choujue:addEffect(fk.Deathed, {
  anim_type = "drawcard",
  can_trigger = function(self, event, target, player, data)
    return player:hasSkill(hx__choujue.name) and data.killer == player
  end,
  on_use = function(self, event, target, player, data)
    local room = player.room
    room:addPlayerMark(player, "hx__choujue_buff-turn", 1)
    room:changeMaxHp(player, 1)
    if player.dead then return end
    player:drawCards(2, hx__choujue.name)
  end,
})


return hx__choujue